package cn.maxhou.mapper;

import cn.maxhou.entity.Supplier;
import cn.maxhou.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {
    /**查询所有供应商*/
    List<Supplier> getSupplierList();
    /**分页查询用户信息*/
    List<Supplier> getpage(@Param("entity") Supplier entity,@Param("offset")  Integer offset,@Param("pageSize")  Integer pageSize);
    /**根据条件查询总记录数*/
    public Long count(@Param("entity") Supplier entity);

    /**添加供应商*/
    int insert(Supplier entity);
    /**修改供应商*/
    int update(Supplier entity);
    Supplier getById(@Param("id") Long id);
    int deleteById(@Param("id") Long id);
    Supplier getSupplierBysupCode(String supCode);
}
